package cn.xuewenbao.ucenter.service;

import cn.xuewenbao.ucenter.entity.Member;
import cn.xuewenbao.ucenter.entity.vo.*;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author mafayu
 * @since 2021-03-29
 */
public interface MemberService extends IService<Member> {
    //用户表-手机号密码登录
    Result<JSONObject> login(MemberLogin memberLogin);

    String getUserNameById(String Id);

    //用户表-修改个人资料
    boolean updateMember(MemberUpdate memberUpdate);

    //用户表-根据id获取用户信息
    MemberInfoVo getMemberInfo(String memberId);

    //首页用户重置密码
    Result<?> resetPassword(String mobile, String oldpassword, String password, String confirmpassword);

    //用户表-根据id获取用户信息-用于个人简介
    Result<MemberProfileVo> getMemberProfile(String memberId, String userId);

    Member getUserByPhone(String mobile);

    Result<String> checkUserEffective(Member member);

    Member getUserByName(String username);

    //注册时确认密码
    Result<JSONObject> register(RegisterVo registerVo);

    Integer getTotalUserNumber();

//    //根据个人兴趣好物推荐
//    Result<List<IntroduceVo>> personalIntroduce(String userId);
}
